package searchteam.client.ui.commands;

import searchteam.client.services.SearchTeamServicesAsync;
import searchteam.client.ui.callbacks.getAllPapersCallback;
import searchteam.client.ui.widgets.DataPanel;

public class getAllPapersCommand implements Command {

	private SearchTeamServicesAsync searchTeamServicesAsync;
	
	public getAllPapersCommand(SearchTeamServicesAsync searchTeamServicesAsync) {
		this.searchTeamServicesAsync = searchTeamServicesAsync;
	}
	
	public void execute(DataPanel dataPanel) {
		searchTeamServicesAsync.getAllPapers(new getAllPapersCallback(dataPanel));
	}
	
}
